package ThreadDemo;

public class ThreadDemo2 {
    public static void main(String[] args) {
        MyThread1 myThread1 = new MyThread1();
        Thread thread = new Thread(myThread1);
        thread.start();
    }

}
class MyThread1 implements Runnable{

    @Override
    public void run() {
        System.out.println("实现Runnable方法");
    }
}
